# -*- coding: utf-8 -*-

from flask import Blueprint
from flask import render_template
from flask import request

from tank import app
from tank.contribs.user import user_manager
from tank.core.discover import depends

depends('tank.contribs.user', 'tank.contribs.celery_tasks')

bp = Blueprint('note', __name__, static_folder='static', template_folder='templates', url_prefix='/note')

from . import views


@app.route("/")
def home_page():
    register_form = user_manager.register_form(request.form)
    return render_template('index.html', form=register_form, register_form=register_form)


app.register_blueprint(bp)
